package com.tanhua.server;

import org.bson.types.ObjectId;
import org.joda.time.DateTime;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

import javax.xml.crypto.Data;
import java.util.Date;

@SpringBootTest

public class Demo03 {
    public static void main(String[] args) {
        System.out.println(new Date());
        System.out.println(new DateTime());

    }

    @Test
    public void TestObjectId() {
        System.out.println(new ObjectId(new Date()));
        System.out.println(System.currentTimeMillis());
    }
}
